#ifndef LOCALMEDIASTREAM_H
#define LOCALMEDIASTREAM_H

#define LABEL_AUDIO ("audio_label")
#define LABEL_VIDEO ("video_label")

#include "MediaStream.h"
#include "pc/video_track_source.h"
class QLabel;

class LocalMediaStream : public QObject, public MediaStream
{
    Q_OBJECT
public:
    static LocalMediaStream* getInstance();

    void init();

private:
    LocalMediaStream(QObject *parent = nullptr);
    void openCamera(const QString& strID);

    void setVideoTrackSource(rtc::scoped_refptr<webrtc::VideoTrackSource> source);

private:
    static LocalMediaStream*        m_pInstance;

};

#endif // LOCALMEDIASTREAM_H
